<%@page import="com.zhiyou.bbs01.Title"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.zhiyou.bbs01.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>主页</title>
<link type="text/css" rel="stylesheet"  href="/bbs/css/index.css"/>
</head>
<body>
	<div class="div_zong">
		<div class="div_left">
			<div class="div_left_top">
				<%
					User u = (User)(request.getSession().getAttribute("user"));//获取用户对象
					if(u!=null){ %>			<%--如果用户对象不为null 说明用户登录成功 并成功获取用户对象  --%>
						<jsp:include page="login_yes.jsp" flush="true"/><%--登陆成功 引入登录成功页面 --%>
				<%	}else{ %>		<%--如果用户对象为null 说明用户没有登录  --%>
						<jsp:include page="login.jsp" flush="true"/><%--没有登录 那就引入登录页面 --%>
				<%	} %>
			</div>
			<div class="div_left_center">
				<jsp:include page="starUser.jsp" flush="true"></jsp:include>
			</div>
			<div class="div_left_bottom">
				<jsp:include page="hotTitle.jsp" flush="true"></jsp:include>
			</div>
		</div>
		<div class="div_right">
			<div class="div_right_top">
				<div class="div_right_top_right">
					<jsp:include page="time.jsp" flush="true"></jsp:include>
				</div>
				<div class="div_right_top_left">
					<h1><font color="blue">我是一个Logo</font></h1>
				</div>
			</div>
			<div class="div_right_center">
				<%
					Boolean showTitleState = (Boolean)request.getSession().getAttribute("showTitleState");	
					Boolean userTitleState = (Boolean)request.getSession().getAttribute("userTitleState");			
					Boolean insertState = (Boolean)request.getSession().getAttribute("insertState");
					if(userTitleState != null && userTitleState){ %>
						<jsp:include page="userTitleAll.jsp"></jsp:include>	
				<% 	} else if(showTitleState != null && showTitleState){ %>
						<jsp:include page="title.jsp"></jsp:include>	
					<%	}else{
						if(insertState!=null && insertState && u != null){ %>
									<jsp:include page="insert.jsp"></jsp:include>		
						 <% }else{%>
									<jsp:include page="showSelect.jsp"></jsp:include>
						<% 	} %>
				<%	} %> 
			</div>
			<div style="border: 0px solid;" class="div_right_bottom">
				<jsp:include page="title_select.jsp" flush="true"></jsp:include>
			</div>
		</div>
	</div>
</body>
</html>